package com.education.ai.repository;

import com.education.ai.entity.Admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface AdminRepository extends JpaRepository<Admin, Long> {
    Optional<Admin> findByAdminId(String adminId);
    Optional<Admin> findByPhone(String phone);
    Optional<Admin> findByName(String name);
    boolean existsByAdminId(String adminId);
    boolean existsByPhone(String phone);
} 